<table class="layui-table text-center"  lay-size="sm">
    <thead>
        <tr>
            <th style="width: 64px">#</th>
            <th><div class="text-left">平台名称</div></th>
            <th><div class="text-left">平台中文名</div></th>
            <th>平台代码</th>
            <th>平台官网</th>
            <th>状态</th>
            <th>排序</th>
            <th>api根路径</th>
            <th>文档路径</th>
            <td>对接类</td>
            <td>备注</td>
            <td>添加时间</td>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {foreach $list as $k => $item}
            <tr>
                <td>{$k+1}</td>
                <td><div class="text-left">{$item.name}</div></td>
                <td><div class="text-left">{$item.name_ch}</div></td>
                <td class="copy-text">{$item.code}</td>
                <td>{if !empty($item.site)}<a target="_blank" href="{$item.site}"><i class="layui-icon layui-icon-link"></i></a>{/if}</td>
                <td><a href="{:url('lock',['platform_id'=>$item['platform_id'],'lock'=>abs(1-$item['status'])])}" class="ajax-get" msg="0" style="font-size: 16px;">{$item.status?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a></td>
                <td>{$item.sort}</td>
                <td><div class="text-left copy-text" style="max-width: 220px;overflow: hidden;">{$item.api_base_url}</div></td>
                <td>{if !empty($item.develop_url)}<a target="_blank" href="{$item.develop_url}"><i class="layui-icon layui-icon-link"></i></a>{/if}</td>
                <td class="text-left">{$item.classes}</td>
                <td class="text-left">{$item.remark}</td>
                <td>{$item.create_time|substr=0,10}</td>
                <td>
                    <a class="layui-btn layui-btn-xs layui-btn-normal ajax-form" href="{:url('add', ['platform_id'=>$item['platform_id']])}" title="平台">编辑</a>
                    <a class="layui-btn layui-btn-xs  layui-btn-danger ajax-get" title="删除" confirm="1" href="{:url('delete', ['platform_id'=>$item['platform_id']])}">删除</a>
                </td>
            </tr>
        {/foreach}
        {empty name="list"}
            <tr>
                <td colspan="12">没有数据</td>
            </tr>
        {/empty}
    </tbody>
</table>